package com.car.sale.mapper;

import com.car.sale.entity.CarSale;
import com.car.sale.vo.Car;
import com.car.sale.vo.Count;
import com.car.sale.vo.Month;
import com.car.sale.vo.Query;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
@Mapper
public interface CarSaleMapper {
    List<Car> getCarTop(Query query);

    List<Count> getCountByType(String type);

    List<Count> getCountByFuel();

    List<Count> getCountByProducer();

    List<Integer> getMonthByFuel(String fuel);

    List<Integer> getMonthByType(Query query);

}
